My interest in REALbasic began with a need for a program to interconvert between metric and US units for a technical report I was drafting. This was my first project, and as such contains examples of poor style. However, it does illustrate the use of arrays, buttons, popups, listboxes, and static text in a very elementary way.
The code is sparsely documented.
My need was for specific kinds of conversions, so I "hardwired" the terms into a arrays so the user cannot change the units without the project. This is poor progamming style, but I ended up with only one file --> the program. The compiled versions run successfully on a G3 with OS 8.0 (PPC code) amd the 68K code version, on a 2ci with OS7.5.0.
In short, here is an example on how NOT TO program. Feel free to improve on it.